diff --git a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/resources.proto b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/resources.proto index 8eebb0445db..a5a80e137f6 100644 --- a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/resources.proto +++ b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/resources.proto @@ -554,6 +554,14 @@ message Cluster { google.protobuf.Timestamp grace_end_time = 4; } + // Configuration for Dataplex integration. + message DataplexConfig { + // Dataplex is enabled by default for resources such as clusters and + // instances. This flag controls the integration of AlloyDB PG + // resources (like databases, schemas, and tables) with Dataplex." + bool enabled = 1; + } + // Cluster State enum State { // The state of the cluster is unknown. @@ -770,6 +778,9 @@ message Cluster { (google.api.field_behavior) = IMMUTABLE, (google.api.field_behavior) = OPTIONAL ]; + + // Optional. Configuration for Dataplex integration. + DataplexConfig dataplex_config = 47 [(google.api.field_behavior) = OPTIONAL]; } // An Instance is a computing unit that an end customer can connect to. diff --git a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1alpha/resources.proto b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1alpha/resources.proto index 13f91f2d773..d6cb76972f3 100644 --- a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1alpha/resources.proto +++ b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1alpha/resources.proto @@ -558,6 +558,14 @@ message Cluster { google.protobuf.Timestamp grace_end_time = 4; } + // Configuration for Dataplex integration. + message DataplexConfig { + // Dataplex is enabled by default for resources such as clusters and + // instances. This flag controls the integration of AlloyDB PG + // resources (like databases, schemas, and tables) with Dataplex." + bool enabled = 1; + } + // Cluster State enum State { // The state of the cluster is unknown. @@ -788,6 +796,9 @@ message Cluster { // service account. The per-cluster service account naming format is subject // to change. string service_account_email = 46 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration for Dataplex integration. + DataplexConfig dataplex_config = 47 [(google.api.field_behavior) = OPTIONAL]; } // An Instance is a computing unit that an end customer can connect to. diff --git a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1beta/resources.proto b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1beta/resources.proto index 2fa7a7729be..7b3ef0259b1 100644 --- a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1beta/resources.proto +++ b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1beta/resources.proto @@ -558,6 +558,14 @@ message Cluster { google.protobuf.Timestamp grace_end_time = 4; } + // Configuration for Dataplex integration. + message DataplexConfig { + // Dataplex is enabled by default for resources such as clusters and + // instances. This flag controls the integration of AlloyDB PG + // resources (like databases, schemas, and tables) with Dataplex." + bool enabled = 1; + } + // Cluster State enum State { // The state of the cluster is unknown. @@ -785,6 +793,9 @@ message Cluster { // service account. The per-cluster service account naming format is subject // to change. string service_account_email = 46 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration for Dataplex integration. + DataplexConfig dataplex_config = 47 [(google.api.field_behavior) = OPTIONAL]; } // An Instance is a computing unit that an end customer can connect to. diff --git a/packages/google-cloud-alloydb/protos/protos.d.ts b/packages/google-cloud-alloydb/protos/protos.d.ts index 4fa74244f63..28c6c475c4e 100644 --- a/packages/google-cloud-alloydb/protos/protos.d.ts +++ b/packages/google-cloud-alloydb/protos/protos.d.ts @@ -2276,6 +2276,9 @@ export namespace google { /** Cluster tags */ tags?: ({ [k: string]: string }|null); + + /** Cluster dataplexConfig */ + dataplexConfig?: (google.cloud.alloydb.v1.Cluster.IDataplexConfig|null); } /** Represents a Cluster. */ @@ -2389,6 +2392,9 @@ export namespace google { /** Cluster tags. */ public tags: { [k: string]: string }; + /** Cluster dataplexConfig. */ + public dataplexConfig?: (google.cloud.alloydb.v1.Cluster.IDataplexConfig|null); + /** Cluster source. */ public source?: ("backupSource"|"migrationSource"|"cloudsqlBackupRunSource"); @@ -2987,6 +2993,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DataplexConfig. */ + interface IDataplexConfig { + + /** DataplexConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a DataplexConfig. */ + class DataplexConfig implements IDataplexConfig { + + /** + * Constructs a new DataplexConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.alloydb.v1.Cluster.IDataplexConfig); + + /** DataplexConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new DataplexConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DataplexConfig instance + */ + public static create(properties?: google.cloud.alloydb.v1.Cluster.IDataplexConfig): google.cloud.alloydb.v1.Cluster.DataplexConfig; + + /** + * Encodes the specified DataplexConfig message. Does not implicitly {@link google.cloud.alloydb.v1.Cluster.DataplexConfig.verify|verify} messages. + * @param message DataplexConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.alloydb.v1.Cluster.IDataplexConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataplexConfig message, length delimited. Does not implicitly {@link google.cloud.alloydb.v1.Cluster.DataplexConfig.verify|verify} messages. + * @param message DataplexConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.alloydb.v1.Cluster.IDataplexConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.alloydb.v1.Cluster.DataplexConfig; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.alloydb.v1.Cluster.DataplexConfig; + + /** + * Verifies a DataplexConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataplexConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataplexConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.alloydb.v1.Cluster.DataplexConfig; + + /** + * Creates a plain object from a DataplexConfig message. Also converts values to other types if specified. + * @param message DataplexConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.alloydb.v1.Cluster.DataplexConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataplexConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataplexConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** State enum. */ enum State { STATE_UNSPECIFIED = 0, @@ -16922,6 +17025,9 @@ export namespace google { /** Cluster serviceAccountEmail */ serviceAccountEmail?: (string|null); + + /** Cluster dataplexConfig */ + dataplexConfig?: (google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig|null); } /** Represents a Cluster. */ @@ -17044,6 +17150,9 @@ export namespace google { /** Cluster serviceAccountEmail. */ public serviceAccountEmail: string; + /** Cluster dataplexConfig. */ + public dataplexConfig?: (google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig|null); + /** Cluster source. */ public source?: ("backupSource"|"migrationSource"|"cloudsqlBackupRunSource"); @@ -17642,6 +17751,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DataplexConfig. */ + interface IDataplexConfig { + + /** DataplexConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a DataplexConfig. */ + class DataplexConfig implements IDataplexConfig { + + /** + * Constructs a new DataplexConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig); + + /** DataplexConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new DataplexConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DataplexConfig instance + */ + public static create(properties?: google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig): google.cloud.alloydb.v1alpha.Cluster.DataplexConfig; + + /** + * Encodes the specified DataplexConfig message. Does not implicitly {@link google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.verify|verify} messages. + * @param message DataplexConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataplexConfig message, length delimited. Does not implicitly {@link google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.verify|verify} messages. + * @param message DataplexConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.alloydb.v1alpha.Cluster.DataplexConfig; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.alloydb.v1alpha.Cluster.DataplexConfig; + + /** + * Verifies a DataplexConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataplexConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataplexConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.alloydb.v1alpha.Cluster.DataplexConfig; + + /** + * Creates a plain object from a DataplexConfig message. Also converts values to other types if specified. + * @param message DataplexConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.alloydb.v1alpha.Cluster.DataplexConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataplexConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataplexConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** State enum. */ enum State { STATE_UNSPECIFIED = 0, @@ -32294,6 +32500,9 @@ export namespace google { /** Cluster serviceAccountEmail */ serviceAccountEmail?: (string|null); + + /** Cluster dataplexConfig */ + dataplexConfig?: (google.cloud.alloydb.v1beta.Cluster.IDataplexConfig|null); } /** Represents a Cluster. */ @@ -32413,6 +32622,9 @@ export namespace google { /** Cluster serviceAccountEmail. */ public serviceAccountEmail: string; + /** Cluster dataplexConfig. */ + public dataplexConfig?: (google.cloud.alloydb.v1beta.Cluster.IDataplexConfig|null); + /** Cluster source. */ public source?: ("backupSource"|"migrationSource"|"cloudsqlBackupRunSource"); @@ -33011,6 +33223,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DataplexConfig. */ + interface IDataplexConfig { + + /** DataplexConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a DataplexConfig. */ + class DataplexConfig implements IDataplexConfig { + + /** + * Constructs a new DataplexConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.alloydb.v1beta.Cluster.IDataplexConfig); + + /** DataplexConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new DataplexConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DataplexConfig instance + */ + public static create(properties?: google.cloud.alloydb.v1beta.Cluster.IDataplexConfig): google.cloud.alloydb.v1beta.Cluster.DataplexConfig; + + /** + * Encodes the specified DataplexConfig message. Does not implicitly {@link google.cloud.alloydb.v1beta.Cluster.DataplexConfig.verify|verify} messages. + * @param message DataplexConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.alloydb.v1beta.Cluster.IDataplexConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataplexConfig message, length delimited. Does not implicitly {@link google.cloud.alloydb.v1beta.Cluster.DataplexConfig.verify|verify} messages. + * @param message DataplexConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.alloydb.v1beta.Cluster.IDataplexConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.alloydb.v1beta.Cluster.DataplexConfig; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.alloydb.v1beta.Cluster.DataplexConfig; + + /** + * Verifies a DataplexConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DataplexConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataplexConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.alloydb.v1beta.Cluster.DataplexConfig; + + /** + * Creates a plain object from a DataplexConfig message. Also converts values to other types if specified. + * @param message DataplexConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.alloydb.v1beta.Cluster.DataplexConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataplexConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataplexConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** State enum. */ enum State { STATE_UNSPECIFIED = 0, diff --git a/packages/google-cloud-alloydb/protos/protos.js b/packages/google-cloud-alloydb/protos/protos.js index 66159ebaa1e..0af3beae285 100644 --- a/packages/google-cloud-alloydb/protos/protos.js +++ b/packages/google-cloud-alloydb/protos/protos.js @@ -5490,6 +5490,7 @@ * @property {google.cloud.alloydb.v1.SubscriptionType|null} [subscriptionType] Cluster subscriptionType * @property {google.cloud.alloydb.v1.Cluster.ITrialMetadata|null} [trialMetadata] Cluster trialMetadata * @property {Object.|null} [tags] Cluster tags + * @property {google.cloud.alloydb.v1.Cluster.IDataplexConfig|null} [dataplexConfig] Cluster dataplexConfig */ /** @@ -5782,6 +5783,14 @@ */ Cluster.prototype.tags = $util.emptyObject; + /** + * Cluster dataplexConfig. + * @member {google.cloud.alloydb.v1.Cluster.IDataplexConfig|null|undefined} dataplexConfig + * @memberof google.cloud.alloydb.v1.Cluster + * @instance + */ + Cluster.prototype.dataplexConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -5891,6 +5900,8 @@ writer.uint32(/* id 41, wireType 2 =*/330).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); if (message.cloudsqlBackupRunSource != null && Object.hasOwnProperty.call(message, "cloudsqlBackupRunSource")) $root.google.cloud.alloydb.v1.CloudSQLBackupRunSource.encode(message.cloudsqlBackupRunSource, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); + if (message.dataplexConfig != null && Object.hasOwnProperty.call(message, "dataplexConfig")) + $root.google.cloud.alloydb.v1.Cluster.DataplexConfig.encode(message.dataplexConfig, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); return writer; }; @@ -6120,6 +6131,10 @@ message.tags[key] = value; break; } + case 47: { + message.dataplexConfig = $root.google.cloud.alloydb.v1.Cluster.DataplexConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -6360,6 +6375,11 @@ if (!$util.isString(message.tags[key[i]])) return "tags: string{k:string} expected"; } + if (message.dataplexConfig != null && message.hasOwnProperty("dataplexConfig")) { + var error = $root.google.cloud.alloydb.v1.Cluster.DataplexConfig.verify(message.dataplexConfig); + if (error) + return "dataplexConfig." + error; + } return null; }; @@ -6630,6 +6650,11 @@ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) message.tags[keys[i]] = String(object.tags[keys[i]]); } + if (object.dataplexConfig != null) { + if (typeof object.dataplexConfig !== "object") + throw TypeError(".google.cloud.alloydb.v1.Cluster.dataplexConfig: object expected"); + message.dataplexConfig = $root.google.cloud.alloydb.v1.Cluster.DataplexConfig.fromObject(object.dataplexConfig); + } return message; }; @@ -6680,6 +6705,7 @@ object.maintenanceSchedule = null; object.subscriptionType = options.enums === String ? "SUBSCRIPTION_TYPE_UNSPECIFIED" : 0; object.trialMetadata = null; + object.dataplexConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -6768,6 +6794,8 @@ if (options.oneofs) object.source = "cloudsqlBackupRunSource"; } + if (message.dataplexConfig != null && message.hasOwnProperty("dataplexConfig")) + object.dataplexConfig = $root.google.cloud.alloydb.v1.Cluster.DataplexConfig.toObject(message.dataplexConfig, options); return object; }; @@ -7990,6 +8018,211 @@ return TrialMetadata; })(); + Cluster.DataplexConfig = (function() { + + /** + * Properties of a DataplexConfig. + * @memberof google.cloud.alloydb.v1.Cluster + * @interface IDataplexConfig + * @property {boolean|null} [enabled] DataplexConfig enabled + */ + + /** + * Constructs a new DataplexConfig. + * @memberof google.cloud.alloydb.v1.Cluster + * @classdesc Represents a DataplexConfig. + * @implements IDataplexConfig + * @constructor + * @param {google.cloud.alloydb.v1.Cluster.IDataplexConfig=} [properties] Properties to set + */ + function DataplexConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataplexConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @instance + */ + DataplexConfig.prototype.enabled = false; + + /** + * Creates a new DataplexConfig instance using the specified properties. + * @function create + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1.Cluster.IDataplexConfig=} [properties] Properties to set + * @returns {google.cloud.alloydb.v1.Cluster.DataplexConfig} DataplexConfig instance + */ + DataplexConfig.create = function create(properties) { + return new DataplexConfig(properties); + }; + + /** + * Encodes the specified DataplexConfig message. Does not implicitly {@link google.cloud.alloydb.v1.Cluster.DataplexConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1.Cluster.IDataplexConfig} message DataplexConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified DataplexConfig message, length delimited. Does not implicitly {@link google.cloud.alloydb.v1.Cluster.DataplexConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1.Cluster.IDataplexConfig} message DataplexConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.alloydb.v1.Cluster.DataplexConfig} DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.alloydb.v1.Cluster.DataplexConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.alloydb.v1.Cluster.DataplexConfig} DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataplexConfig message. + * @function verify + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataplexConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a DataplexConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.alloydb.v1.Cluster.DataplexConfig} DataplexConfig + */ + DataplexConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.alloydb.v1.Cluster.DataplexConfig) + return object; + var message = new $root.google.cloud.alloydb.v1.Cluster.DataplexConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a DataplexConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1.Cluster.DataplexConfig} message DataplexConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataplexConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this DataplexConfig to JSON. + * @function toJSON + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @instance + * @returns {Object.} JSON object + */ + DataplexConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataplexConfig + * @function getTypeUrl + * @memberof google.cloud.alloydb.v1.Cluster.DataplexConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataplexConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.alloydb.v1.Cluster.DataplexConfig"; + }; + + return DataplexConfig; + })(); + /** * State enum. * @name google.cloud.alloydb.v1.Cluster.State @@ -43442,6 +43675,7 @@ * @property {google.cloud.alloydb.v1alpha.Cluster.ITrialMetadata|null} [trialMetadata] Cluster trialMetadata * @property {Object.|null} [tags] Cluster tags * @property {string|null} [serviceAccountEmail] Cluster serviceAccountEmail + * @property {google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig|null} [dataplexConfig] Cluster dataplexConfig */ /** @@ -43758,6 +43992,14 @@ */ Cluster.prototype.serviceAccountEmail = ""; + /** + * Cluster dataplexConfig. + * @member {google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig|null|undefined} dataplexConfig + * @memberof google.cloud.alloydb.v1alpha.Cluster + * @instance + */ + Cluster.prototype.dataplexConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -43873,6 +44115,8 @@ $root.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.encode(message.cloudsqlBackupRunSource, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); if (message.serviceAccountEmail != null && Object.hasOwnProperty.call(message, "serviceAccountEmail")) writer.uint32(/* id 46, wireType 2 =*/370).string(message.serviceAccountEmail); + if (message.dataplexConfig != null && Object.hasOwnProperty.call(message, "dataplexConfig")) + $root.google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.encode(message.dataplexConfig, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); return writer; }; @@ -44114,6 +44358,10 @@ message.serviceAccountEmail = reader.string(); break; } + case 47: { + message.dataplexConfig = $root.google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -44366,6 +44614,11 @@ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) if (!$util.isString(message.serviceAccountEmail)) return "serviceAccountEmail: string expected"; + if (message.dataplexConfig != null && message.hasOwnProperty("dataplexConfig")) { + var error = $root.google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.verify(message.dataplexConfig); + if (error) + return "dataplexConfig." + error; + } return null; }; @@ -44649,6 +44902,11 @@ } if (object.serviceAccountEmail != null) message.serviceAccountEmail = String(object.serviceAccountEmail); + if (object.dataplexConfig != null) { + if (typeof object.dataplexConfig !== "object") + throw TypeError(".google.cloud.alloydb.v1alpha.Cluster.dataplexConfig: object expected"); + message.dataplexConfig = $root.google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.fromObject(object.dataplexConfig); + } return message; }; @@ -44702,6 +44960,7 @@ object.subscriptionType = options.enums === String ? "SUBSCRIPTION_TYPE_UNSPECIFIED" : 0; object.trialMetadata = null; object.serviceAccountEmail = ""; + object.dataplexConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -44796,6 +45055,8 @@ } if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) object.serviceAccountEmail = message.serviceAccountEmail; + if (message.dataplexConfig != null && message.hasOwnProperty("dataplexConfig")) + object.dataplexConfig = $root.google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.toObject(message.dataplexConfig, options); return object; }; @@ -46018,6 +46279,211 @@ return TrialMetadata; })(); + Cluster.DataplexConfig = (function() { + + /** + * Properties of a DataplexConfig. + * @memberof google.cloud.alloydb.v1alpha.Cluster + * @interface IDataplexConfig + * @property {boolean|null} [enabled] DataplexConfig enabled + */ + + /** + * Constructs a new DataplexConfig. + * @memberof google.cloud.alloydb.v1alpha.Cluster + * @classdesc Represents a DataplexConfig. + * @implements IDataplexConfig + * @constructor + * @param {google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig=} [properties] Properties to set + */ + function DataplexConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataplexConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @instance + */ + DataplexConfig.prototype.enabled = false; + + /** + * Creates a new DataplexConfig instance using the specified properties. + * @function create + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig=} [properties] Properties to set + * @returns {google.cloud.alloydb.v1alpha.Cluster.DataplexConfig} DataplexConfig instance + */ + DataplexConfig.create = function create(properties) { + return new DataplexConfig(properties); + }; + + /** + * Encodes the specified DataplexConfig message. Does not implicitly {@link google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig} message DataplexConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified DataplexConfig message, length delimited. Does not implicitly {@link google.cloud.alloydb.v1alpha.Cluster.DataplexConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1alpha.Cluster.IDataplexConfig} message DataplexConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.alloydb.v1alpha.Cluster.DataplexConfig} DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.alloydb.v1alpha.Cluster.DataplexConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.alloydb.v1alpha.Cluster.DataplexConfig} DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataplexConfig message. + * @function verify + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataplexConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a DataplexConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.alloydb.v1alpha.Cluster.DataplexConfig} DataplexConfig + */ + DataplexConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.alloydb.v1alpha.Cluster.DataplexConfig) + return object; + var message = new $root.google.cloud.alloydb.v1alpha.Cluster.DataplexConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a DataplexConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1alpha.Cluster.DataplexConfig} message DataplexConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataplexConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this DataplexConfig to JSON. + * @function toJSON + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @instance + * @returns {Object.} JSON object + */ + DataplexConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataplexConfig + * @function getTypeUrl + * @memberof google.cloud.alloydb.v1alpha.Cluster.DataplexConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataplexConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.alloydb.v1alpha.Cluster.DataplexConfig"; + }; + + return DataplexConfig; + })(); + /** * State enum. * @name google.cloud.alloydb.v1alpha.Cluster.State @@ -83298,6 +83764,7 @@ * @property {google.cloud.alloydb.v1beta.Cluster.ITrialMetadata|null} [trialMetadata] Cluster trialMetadata * @property {Object.|null} [tags] Cluster tags * @property {string|null} [serviceAccountEmail] Cluster serviceAccountEmail + * @property {google.cloud.alloydb.v1beta.Cluster.IDataplexConfig|null} [dataplexConfig] Cluster dataplexConfig */ /** @@ -83606,6 +84073,14 @@ */ Cluster.prototype.serviceAccountEmail = ""; + /** + * Cluster dataplexConfig. + * @member {google.cloud.alloydb.v1beta.Cluster.IDataplexConfig|null|undefined} dataplexConfig + * @memberof google.cloud.alloydb.v1beta.Cluster + * @instance + */ + Cluster.prototype.dataplexConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -83719,6 +84194,8 @@ $root.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.encode(message.cloudsqlBackupRunSource, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); if (message.serviceAccountEmail != null && Object.hasOwnProperty.call(message, "serviceAccountEmail")) writer.uint32(/* id 46, wireType 2 =*/370).string(message.serviceAccountEmail); + if (message.dataplexConfig != null && Object.hasOwnProperty.call(message, "dataplexConfig")) + $root.google.cloud.alloydb.v1beta.Cluster.DataplexConfig.encode(message.dataplexConfig, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); return writer; }; @@ -83956,6 +84433,10 @@ message.serviceAccountEmail = reader.string(); break; } + case 47: { + message.dataplexConfig = $root.google.cloud.alloydb.v1beta.Cluster.DataplexConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -84205,6 +84686,11 @@ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) if (!$util.isString(message.serviceAccountEmail)) return "serviceAccountEmail: string expected"; + if (message.dataplexConfig != null && message.hasOwnProperty("dataplexConfig")) { + var error = $root.google.cloud.alloydb.v1beta.Cluster.DataplexConfig.verify(message.dataplexConfig); + if (error) + return "dataplexConfig." + error; + } return null; }; @@ -84486,6 +84972,11 @@ } if (object.serviceAccountEmail != null) message.serviceAccountEmail = String(object.serviceAccountEmail); + if (object.dataplexConfig != null) { + if (typeof object.dataplexConfig !== "object") + throw TypeError(".google.cloud.alloydb.v1beta.Cluster.dataplexConfig: object expected"); + message.dataplexConfig = $root.google.cloud.alloydb.v1beta.Cluster.DataplexConfig.fromObject(object.dataplexConfig); + } return message; }; @@ -84538,6 +85029,7 @@ object.subscriptionType = options.enums === String ? "SUBSCRIPTION_TYPE_UNSPECIFIED" : 0; object.trialMetadata = null; object.serviceAccountEmail = ""; + object.dataplexConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -84630,6 +85122,8 @@ } if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) object.serviceAccountEmail = message.serviceAccountEmail; + if (message.dataplexConfig != null && message.hasOwnProperty("dataplexConfig")) + object.dataplexConfig = $root.google.cloud.alloydb.v1beta.Cluster.DataplexConfig.toObject(message.dataplexConfig, options); return object; }; @@ -85852,6 +86346,211 @@ return TrialMetadata; })(); + Cluster.DataplexConfig = (function() { + + /** + * Properties of a DataplexConfig. + * @memberof google.cloud.alloydb.v1beta.Cluster + * @interface IDataplexConfig + * @property {boolean|null} [enabled] DataplexConfig enabled + */ + + /** + * Constructs a new DataplexConfig. + * @memberof google.cloud.alloydb.v1beta.Cluster + * @classdesc Represents a DataplexConfig. + * @implements IDataplexConfig + * @constructor + * @param {google.cloud.alloydb.v1beta.Cluster.IDataplexConfig=} [properties] Properties to set + */ + function DataplexConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataplexConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @instance + */ + DataplexConfig.prototype.enabled = false; + + /** + * Creates a new DataplexConfig instance using the specified properties. + * @function create + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1beta.Cluster.IDataplexConfig=} [properties] Properties to set + * @returns {google.cloud.alloydb.v1beta.Cluster.DataplexConfig} DataplexConfig instance + */ + DataplexConfig.create = function create(properties) { + return new DataplexConfig(properties); + }; + + /** + * Encodes the specified DataplexConfig message. Does not implicitly {@link google.cloud.alloydb.v1beta.Cluster.DataplexConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1beta.Cluster.IDataplexConfig} message DataplexConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified DataplexConfig message, length delimited. Does not implicitly {@link google.cloud.alloydb.v1beta.Cluster.DataplexConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1beta.Cluster.IDataplexConfig} message DataplexConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataplexConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.alloydb.v1beta.Cluster.DataplexConfig} DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.alloydb.v1beta.Cluster.DataplexConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataplexConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.alloydb.v1beta.Cluster.DataplexConfig} DataplexConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataplexConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataplexConfig message. + * @function verify + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataplexConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a DataplexConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.alloydb.v1beta.Cluster.DataplexConfig} DataplexConfig + */ + DataplexConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.alloydb.v1beta.Cluster.DataplexConfig) + return object; + var message = new $root.google.cloud.alloydb.v1beta.Cluster.DataplexConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a DataplexConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {google.cloud.alloydb.v1beta.Cluster.DataplexConfig} message DataplexConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataplexConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this DataplexConfig to JSON. + * @function toJSON + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @instance + * @returns {Object.} JSON object + */ + DataplexConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataplexConfig + * @function getTypeUrl + * @memberof google.cloud.alloydb.v1beta.Cluster.DataplexConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataplexConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.alloydb.v1beta.Cluster.DataplexConfig"; + }; + + return DataplexConfig; + })(); + /** * State enum. * @name google.cloud.alloydb.v1beta.Cluster.State diff --git a/packages/google-cloud-alloydb/protos/protos.json b/packages/google-cloud-alloydb/protos/protos.json index 7db9072a420..7cbde53da89 100644 --- a/packages/google-cloud-alloydb/protos/protos.json +++ b/packages/google-cloud-alloydb/protos/protos.json @@ -768,6 +768,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "dataplexConfig": { + "type": "DataplexConfig", + "id": 47, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -852,6 +859,14 @@ } } }, + "DataplexConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "State": { "values": { "STATE_UNSPECIFIED": 0, @@ -5654,6 +5669,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "dataplexConfig": { + "type": "DataplexConfig", + "id": 47, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -5738,6 +5760,14 @@ } } }, + "DataplexConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "State": { "values": { "STATE_UNSPECIFIED": 0, @@ -10763,6 +10793,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "dataplexConfig": { + "type": "DataplexConfig", + "id": 47, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -10847,6 +10884,14 @@ } } }, + "DataplexConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "State": { "values": { "STATE_UNSPECIFIED": 0,